package com.oocl.training.sort;

import java.util.Comparator;

import com.oocl.training.pojo.Customer;

/**
 * 按照生日排序
 * @author GANAB
 *
 */
public class BirthdayComparator implements Comparator<Customer>{
	
	public int compare(Customer o1, Customer o2) {
		return o1.getBirthday().compareTo(o2.getBirthday());
	}

}
